package com.project.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.project.entity.Mechanism;
import com.project.service.MechanismService;
import com.project.mapper.MechanismMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author lenovo
 * @description 针对表【t_mechanism】的数据库操作Service实现
 * @createDate 2023-02-02 02:48:38
 */
@Service
public class MechanismServiceImpl extends ServiceImpl<MechanismMapper, Mechanism> implements MechanismService {

    @Autowired
    private MechanismMapper mechanismMapper;

    @Override
    public Mechanism findById(String id) {
        return mechanismMapper.findById(id);
    }

    @Override
    public List<Mechanism> getMechanismList() {
        return mechanismMapper.getMechanismList();
    }

    @Override
    public List<Mechanism> list(Map<String, Object> map) {
        return mechanismMapper.list(map);
    }

    @Override
    public long getTotal(Map<String, Object> map) {
        return mechanismMapper.getTotal(map);
    }
}




